package com.gla.service;


import com.github.pagehelper.PageHelper;
import com.gla.dao.LoginMapper;
import com.gla.dao.OrderMapper;
import com.gla.entity.Admin;
import com.gla.entity.Order;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LoginService {

    @Resource
    LoginMapper loginMapper;

    public boolean isAdmin(String username,String password) {
        Admin admin = loginMapper.isAdmin(username,password);
        System.out.println(admin);
        if(admin != null){
            return true;
        }else{
            return false;
        }
    }
}
